package com.dutchboy.system.api;

import com.dutchboy.system.api.Factory.RemoteSystemFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author : zhen.xue
 * @Date: 2020-08-27 18:39
 */
@FeignClient(name = "dutchboy-auth",fallbackFactory = RemoteSystemFallbackFactory.class)
public interface RemoteSystemService {

    @GetMapping(value = "/echo/{string}")
    String echo(@PathVariable(value="string") String string);
}